package com.yuelife.dao;

import com.yuelife.pojo.Workman;
import org.apache.ibatis.annotations.Param;

public interface WorkmanDao {
    int deleteByPrimaryKey(Integer id);

    int insert(Workman record);

    int insertSelective(Workman record);

    Workman selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Workman record);

    int updateByPrimaryKey(Workman record);
    Workman findByName(String tel);
    Workman findByNameAndPassword(@Param("tel") String tel, @Param("password") String password);
}